<template>
<button @click="loadJQuery">加载jquery</button>
</template>

<script setup lang="ts">
import { useScriptTag } from "@vueuse/core";

defineOptions({
  name: "UseScriptTag"
})

const loadJQuery = () => useScriptTag("https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js", el => {
  console.log(el)
})
</script>

<style scoped lang="css">
.use-script-tag {

}
</style>
